<?php
/* @var $this SiteController */

if (Yii::app()->session["user_id"] == null) {
    $this->redirect(array("site/index"));
}
$this->pageTitle = Yii::app()->name;
?>
<?php

$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider' => $questions,
    'columns' => array(
        'ques_name',
        array(
            'header' => '',
            'class' => 'CLinkColumn',
            'imageUrl' => 'images/chart.png',
            'urlExpression' => 'Yii::app()->createUrl("Report/ReportDetail", array("id" => $data->ques_id))',
            'htmlOptions' => array(
                'width' => '250px',
                'align' => 'center'
            )
        )
    )
));

?>
